<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
	    <c:choose>
 					    <c:when test="${requestScope.userList!=null}">
						  <c:forEach items="${requestScope.userList}" var="dataOne" varStatus="temp">
							<tr class="class" id="dataUser_${dataOne.userId}">
								<td>${temp.count}</td>
								<td>${dataOne.userNickname}</td>
								<td>${dataOne.userName}</td>
								<td><c:if test="${dataOne.userSex==0}">女</c:if><c:if test="${dataOne.userSex==1}">男</c:if></td>
								<td >
								 <a href="javascript:setUserRole('${dataOne.userId}');">
								 <strong id="role_user_${dataOne.userId}">
								 <c:choose>
								 <c:when test="${dataOne.roleNum>=1}">${dataOne.roleName}   </c:when>
								 <c:otherwise> 尚未分配角色 </c:otherwise>
								 </c:choose></strong><span class="glyphicon glyphicon-wrench"></span>
								 </a>  
								</td>
								<td>
								<a href="javascript:deleteData('${dataOne.userId}');" >删除</a> 
								 <a href="javascript:toUpdateData('${dataOne.userId}');" >更新</a></td>
							</tr>
							</c:forEach>
							 </c:when>
							<c:otherwise>
							<tr><td colspan="11" align="center"> <strong>对不起--暂无数据！</strong></td></tr>
							</c:otherwise>
							</c:choose>
			<!-- 子页面动态的给父类页面动态的复制 -->
  	<script type="text/javascript">
  	$("#curPage").attr("value",${requestScope.pageNum});//当前页面
    $("#totalPage").attr("value",${requestScope.totalPage});//共计多少条
  	</script>